function out = my_getdependencies(file)
    % out = my_getdependencies(file)
    % -------- custom function --------
    % description:
    %   get files that the function depends on
    % input:
    %   file: string, name of the file that contains the function
    % output:
    %   out: cell array of char, path to required files
    % Author: sid chen
    % Data: 2021/12/27
    out = matlab.codetools.requiredFilesAndProducts(file);

    % print out
    fprintf("\nThe file %s depends on:\n",file);
    for ii =1:numel(out)
        fprintf("No.%d\t%s\n",ii,out{ii});
    end
    fprintf("\n");
end
